package com.itheima.Test05;

//创建一个clark(职员)类,他继承Employee类;
public class Clerk extends Employee {
    //经理k;
    Manager M;
    //定义一个Manager类型的成员变量，变量名叫m;

    public Clerk() {
    }

    public Clerk(String workid, String name, String depart) {
        super(workid, name, depart);
        this.M = M;
    }

    public Manager getM() {
        return M;
    }

    public void setM(Manager M) {
        this.M = M;
    }

    @Override
    public void showMsg() {
        super.showMsg();
        System.out.println("他的经理是" + M.getName());
    }
}
